import request from '@/utils/request.js';

export function getCommondityLists() {
  return request({
    methods: 'GET',
    url: 'goodlist',
  });
}

export function deletegood(id) {
  return request({
    method: 'DELETE',
    url: `goodlist/${id}`,
  });
}

export function editdata(data, id) {
  return request({
    method: 'PATCH',
    url: `goodlist/${id}`,
    data,
  });
}

export function pagindata(params) {
  return request({
    method: 'GET',
    url: `goodlist`,
    params,
  });
}
